package com.mimose.component.chains.config;

import com.mimose.component.chains.util.Constants;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @Description 链路中的线程池配置
 * @Author ccy
 * @Date 2020/1/15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ConfigurationProperties(prefix = Constants.CHAIN_EXECUTOR_PROPERTIES_PREFIX)
public class ChainExecutorProperties {

    private Integer corePoolSize = Constants.DEFAULT_CHAIN_EXECUTOR_CORE_POOL_SIZE;

    private Integer maximumPoolSize = Constants.DEFAULT_CHAIN_EXECUTOR_MAX_POOL_SIZE;

    private Long keepAliveTime = Constants.DEFAULT_CHAIN_EXECUTOR_KEEP_ALIVE_TIME;

    private Integer queueCapacity = Constants.DEFAULT_CHAIN_EXECUTOR_QUEUE_CAPACITY;

}
